#include"stdio.h"
#include"stdlib.h"
#define maxsize 20
typedef struct TreeNode{
	int valu;
	struct TreeNode *left;
	struct TreeNode *right;
    struct TreeNode *parent;
    
}TreeNode,*TreeRoot;
int CreatTree(TreeRoot &root, int *array, int index)
{
	if (index > *array)
	{
		return false;
	}
	else
	{
		if (*(array + index) == NULL)
		{
			root = NULL;
			return false;
		}
		else
		{
			root = (TreeRoot)malloc(sizeof(TreeNode));
			root->valu = *(array + index);
			root->left = NULL;
			root->right = NULL;
            root->parent=NULL;
			CreatTree(root->left, array, index * 2);
			CreatTree(root->right, array, index * 2 + 1);
			return true;
		}
	}
}
void main(){
    TreeRoot T;
    
}